# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>

pkgname=python-heatclient
pkgver=3.2.0
_commit=712739e5e7322f270467bbf49d5062a241db98dd
pkgrel=2
pkgdesc="OpenStack Orchestration API Client Library"
arch=('any')
url="https://docs.openstack.org/python-heatclient/latest/"
license=('Apache')
depends=('python-babel' 'python-pbr' 'python-cliff' 'python-iso8601' 'python-osc-lib'
         'python-prettytable' 'python-oslo-i18n' 'python-oslo-serialization' 'python-oslo-utils'
         'python-keystoneauth1' 'python-swiftclient' 'python-yaml' 'python-requests' 'python-six')
makedepends=('git')
checkdepends=('python-stestr' 'python-testscenarios' 'python-requests-mock')
source=("git+https://github.com/openstack/python-heatclient.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd python-heatclient
  python setup.py build
}

check() {
  cd python-heatclient
  stestr run
}

package() {
  cd python-heatclient
  python setup.py install --root="$pkgdir" --optimize=1
}
